﻿using System.Drawing;

namespace PolylineCompression
{
	/// <summary>
	/// 线段
	/// </summary>
	class LineSegment
	{

		private Point start;

		private Point end;

		/// <summary>
		/// 线段起点
		/// </summary>
		public Point Start
		{
			get { return start; }
			set { start = value; }
		}

		/// <summary>
		/// 线段终点
		/// </summary>
		public Point End
		{
			get { return end; }
			set { end = value; }
		}

		/// <summary>
		/// 线段无参构造器
		/// </summary>
		public LineSegment()
		{
		}

		/// <summary>
		/// 用两个点初始化线段
		/// </summary>
		/// <param name="start">起始点</param>
		/// <param name="end">终止点</param>
		public LineSegment(Point start, Point end)
		{
			Start = start;
			End = end;
		}
	}
}